package cn.tj212.inmall.service;

import cn.tj212.inmall.common.ServerResponse;
import cn.tj212.inmall.pojo.User;

import javax.servlet.http.HttpSession;

public interface IUserService {
    ServerResponse<User> login(String username, String password);

    ServerResponse<String> register(User user);

    ServerResponse<String> checkValid(String str,String type);

    ServerResponse selectQuestion(String username);

    ServerResponse<String> checkAnswer(String username,String question,String answer);

    ServerResponse<String> forgetResetPwd(String username,String newPassword,String forgetToken);

    ServerResponse<String> resetPwd(String oldPassword,String newPassword,User user);

    ServerResponse<User> updateUserInfo(User user);

    ServerResponse<User> getInfo(Integer userId);

    ServerResponse checkAdminRole(User user);
}
